import tkinter

from NetEngine import NetEngine


class ChatWindow(tkinter.Frame):
    def __init__(self, master: tkinter.Tk, engine: NetEngine):
        super().__init__(master)
        self.engine = engine
        # 上面标签页，下面输入栏
        tkinter.Button(self, text='关闭', command=self.kill_self).pack()
        pass

    def kill_self(self):
        self.destroy()
